<template>
	<view>
		<view class="salary-list">
			<text>{{formName}}</text>
			<text style="font-size: 28rpx;">{{sendDate}}</text>
		</view>
		<view class="table">
			<template v-if="salaryDetail.length!=0">
				<g-cell-group border titleHeight="0">

					<g-cell v-for="(item,index) in salaryDetail" v-show="item.label!='期间'&&item.label!='方案名称'">
						<template slot="left">
							<text :style="{
								'font-weight': item.label=='实发合计'||item.label=='应发合计'||item.label=='扣款合计'?'600':'400',
								'color':item.label=='实发合计'||item.label=='应发合计'||item.label=='扣款合计'?'#4874C0':'#2b2b2b'}">
								{{item.label}}
							</text>
						</template>
						<template slot="right">
							<text :style="{
								'font-weight': item.label=='实发合计'||item.label=='应发合计'||item.label=='扣款合计'?'600':'400',
								'color':item.label=='实发合计'||item.label=='应发合计'||item.label=='扣款合计'?'#4874C0':'#2b2b2b'}">
								{{item.value}}
							</text>
						</template>
					</g-cell>
				</g-cell-group>
			</template>
			<view v-if="salaryDetail.length==0" class="empty-tips">暂无相关数据</view>
			<!-- <my-table textAlign="center" :tableContentProp='salaryTable' ref="heightChild" @handleClick='clickTable'></my-table> -->
		</view>
	</view>
</template>

<script>
	import service from '../../../common/service/new_file.js'
	import apiData from '../../../common/utils/apiData.js'
	export default {
		data() {
			return {
				salaryDetail: {},
				sendDate: '',
				formName: '', //方案名
			};
		},
		methods: {
			// ___________________________时间选择——————————————————————————————————
			// ___________________________时间选择——————————————————————————————————
		},
		onReady() {

		},
		onPullDownRefresh() {},
		computed: {},
		onLoad(options) {
			this.salaryDetail = JSON.parse(options.item)
			this.sendDate = this.salaryDetail.filter(item => item.label == '期间')[0].value
			this.formName = this.salaryDetail.filter(item => item.label == '方案名称')[0].value
		},
	}
</script>

<style lang="scss" scoped>
	.salary-list {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20rpx;
		font-size: 36rpx;
		font-weight: 600;
	}
</style>
